<?php
use app\backend\widgets\LinkPager;
use app\backend\components\AppAdminAcl;
$this->title = '用户管理';
$this->params['breadcrumbs'] = [['label'=>'用户管理','url'=>'?r=user/userinfo/index'],['label'=>'用户详情']];
?>
<style>
.margin_left{
	margin-left:-13px;
}
.margin_top{
	margin-top:10px;
}
.margin8{
	margin-left:8px;
}
h5{
	margin-top:-10px;
}
.ccc{
	color:#ccc;
}
</style>
<h4>用户详情</h4><br>
<h5 class="ccc">基本资料</h5>
<hr>
<div class="row viewer">
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>用户ID</span>
		</div>
		<div class="col-md-4">
			<span class="uid"><?= $user['user_id'] ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>用户名称</span>
		</div>
		<div class="col-md-4">
			<span><?= $user['name'] ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>用户角色</span>
		</div>
		<div class="col-md-4">
			<span><?= $user['role'] ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>Email</span>
		</div>
		<div class="col-md-4">
			<span><?= $user['email'] ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>手机号码</span>
		</div>
		<div class="col-md-4">
			<span><?= $user['phone'] ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>身份证号</span>
		</div>
		<div class="col-md-4">
			<span><?= $user['identity_num'] ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>出生日期</span>
		</div>
		<div class="col-md-4">
			<span><?= date('Y-m-d',$user['birthday']) ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>性别</span>
		</div>
		<div class="col-md-4">
			<span><?= $user['sex'] == 1?'男':'女' ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>入职日期</span>
		</div>
		<div class="col-md-4">
			<span><?= date('Y-m-d',$user['start_time']) ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
		<div class="col-md-2 margin_left ccc">
			<span>离职日期</span>
		</div>
		<div class="col-md-4">
			<span><?= $user['finish_time']?date('Y-m-d',$user['finish_time']):'在职' ?></span>
		</div>
	</div>
	<div class="col-md-12 margin_top">
	<div class="col-md-2 margin_left ccc">
		<span>最美头像</span>
	</div>
	<div class="col-md-4">
		<img src="<?= $user['icon']?Yii::$app->params['img_host'].$user['icon']:Yii::$app->params['img_host'].'/images/default/default.jpg' ?>" alt="" style="width:110px;height:110px">
	</div>
	</div>
</div>



